import axios from '@/axios'

// 获取用户收藏的文章列表
export function getFavoriteArticles(pageNum, pageSize) {
    return axios.get('/article/favorite/list', {
        params: {
            pageNum,
            pageSize
        }
    })
}

// 测试函数：添加收藏
export function testAddFavorite(articleId) {
    return axios.post('/article/favorite/toggle', {
        articleId: articleId
    })
} 